package homework05;

public class Demo {
	public static void main(String[] args) {
		MyThread m1=new MyThread(10);
		MyThread m2=new MyThread(20);
		MyThread m3=new MyThread(30);
		MyThread m4=new MyThread(40);
		MyThread m5=new MyThread(50);
		MyThread m6=new MyThread(60);
		MyThread m7=new MyThread(70);
		MyThread m8=new MyThread(80);
		MyThread m9=new MyThread(90);
		MyThread m10=new MyThread(100);
		m1.start();
		m2.start();
		m3.start();
		m4.start();
		m5.start();
		m6.start();
		m7.start();
		m8.start();
		m9.start();
		m10.start();
		try {
			Thread.sleep(1000);
		} catch (InterruptedException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		System.out.println(m1.getTotal());
	}
}
